// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import * as $http from './requests'
import store from './store'

Vue.prototype.$http = $http
Vue.use(MintUI)
Vue.use(ElementUI)

Vue.config.productionTip = false
// 其实也没必要，只是为了试试,相当于全局的filters
Vue.mixin({
  filters: {
    limitnum (data) {
      if (data > 99) {
        return 99 + '+'
      }
      return data
    }
  }
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
